import httpRequest from '@/utils/httpRequest'
import constant from '../constant'

export function pageData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/page',
    method: 'post',
    data: data
  })
}
export function listTemplateData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/list',
    method: 'post',
    data: data
  })
}

export function getData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/get',
    method: 'post',
    data: data
  })
}
export function saveData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/save',
    method: 'post',
    data: data
  })
}
export function updateData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/update',
    method: 'post',
    data: data
  })
}
export function getEntityInfo (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/getEntityInfo',
    method: 'post',
    data: data
  })
}
export function getTreeMessage (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceTemplate/getTreeMessage',
    method: 'post',
    data: data
  })
}

